/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tetris;

import java.awt.Color;
import java.awt.Graphics;

/**
 *
 * @author CJ
 */
public class Orphan_Block extends Block{

    public Orphan_Block(int y, int x, Color color)
    {
        super(x*10, y*10, 15, 'N', 0, 0);
        this.color = color;
    }

    public void setX(int x, Board b)
    {
        
    }
    
    public void makearea()
    {
    
    }
    
    public boolean canMoveY(Board b)
    {
        return false;
    }

    public void draw(Graphics g, Board b)
    {
        g.setColor(color);
        g.fillRect(x, y, 10, 10);

        g.setColor(Color.black);
        g.drawRect(x, y, 10, 10);

    }

    public void shadowDraw(Graphics g, Board b)
    {}

}
